package com.block.datapush.special.api.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

public class CommonUtil {
    public static String getZhiMa(String zhimaScore) {
        if (StrUtil.equals(zhimaScore, BaseTypeInfoEnum.ZhimaScore.zm003.getValue())) {
            return "zm004";
        } else if (StrUtil.equals(zhimaScore, BaseTypeInfoEnum.ZhimaScore.zm004.getValue())) {
            return "zm005";
        } else if (StrUtil.equals(zhimaScore, BaseTypeInfoEnum.ZhimaScore.zm005.getValue())) {
            return "zm005";
        }
        return "zm003";
    }


    public static String getLoanAmount(String loanAmount) {
        if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la001.getValue())) {
            return "la003";
        } else if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la002.getValue())) {
            return "la003";
        } else if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la003.getValue())) {
            return "la003";
        } else if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la004.getValue())) {
            return "la004";
        } else if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la005.getValue())) {
            return "la005";
        }
        return "la003";
    }
}
